import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const X6_DEMO: AppRouteRecordRaw = {
  path: '/x6-demo',
  name: 'x6Demo',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.x6Demo',
    requiresAuth: true,
    icon: 'icon-bug',
    order: 8,
  },
  children: [
    {
      path: 'graph-editor',
      name: 'GraphEditor',
      component: () => import('@/views/x6-demo/graph-editor/index.vue'),
      meta: {
        locale: 'menu.x6Demo.graphEditor',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default X6_DEMO;